<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<html>
<head>
<title>Lista de Estudantes</title>
<link rel=STYLESHEET href="/FloappContest/css/floapp.css"
	type="text/css">
</head>
<body>
<f:view>
	<table border="0" align="left" cellpadding="0" cellspacing="0">
		<tr>
			<td colspan="2"><img src="/FloappContest/images/top.jpg"
				width="800" /></td>
		</tr>
		<tr>
			<td class="menuBar" colspan="2" align="center"><h:form>
				<t:jscookMenu layout="hbr" theme="ThemePanel" rendered="true">
					<t:navigationMenuItems value="#{menuBarRedirection.menus}"></t:navigationMenuItems>
				</t:jscookMenu>
			</h:form></td>
		</tr>
		<tr>
			<td class="backgroundBody" align="center"><h:form>
				<h3 class="title">Lista de Estudantes</h3>
				<b><h:outputText value=""
					style="COLOR: #800000; FONT-SIZE: x-small; FONT-FAMILY: 'Verdana';" /></b>
				<h:dataTable value="#{studentBean.list}" var="student"
					styleClass="elementList" headerClass="elementListHeading"
					columnClasses="elementListColumn">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Nome" styleClass="elementHeading"></h:outputText>
						</f:facet>
						<h:outputText value="#{student.name}" styleClass="elementOutPut"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Nome do Tutor" styleClass="elementHeading"></h:outputText>
						</f:facet>
						<h:outputText value="#{student.tutorName}"
							styleClass="elementOutPut"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Email" styleClass="elementHeading"></h:outputText>
						</f:facet>
						<h:outputText value="#{student.email}" styleClass="elementOutPut"></h:outputText>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Equipe" styleClass="elementHeading"></h:outputText>
						</f:facet>
						<h:outputText value="#{student.teamName}"
							styleClass="elementOutPut"></h:outputText>
					</h:column>
					<h:column>
						<h:commandButton action="#{studentBean.removeStudent}"
							value="Excluir"
							style="COLOR: #5b2e00; FONT-FAMILY: 'Verdana'; BACKGROUND-COLOR: #f7fa80; FONT-SIZE: x-small; FONT-WEIGHT: bold; width : 47px;">
							<t:updateActionListener value="#{student.login}"
								property="#{studentBean.student.login}"></t:updateActionListener>
						</h:commandButton>
					</h:column>
				</h:dataTable>
			</h:form></td>
		</tr>
	</table>
</f:view>
</body>
</html>
